<?php $this->_extends('_layouts/main_layout'); ?>
<?php $this->_block('title'); ?>
	Update Monetization
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<div id="content" class="box">
	<h1>Update Monetization</h1>
		<?php if (isset($infos)) 
				{
					foreach ($infos as $info)
					{
		?>
				<p class="msg info"><?php echo $info;?></p>
		<?php		}
				}
		?>
		<fieldset>
			<legend>Update Monetization</legend>
		<?php if (isset($errors)) 
				{
					foreach ($errors as $error)
					{
		?>
				<p class="msg error"><?php echo $error;?></p>
		<?php		}
				}
		?>
		<form method="post" action="<?php echo url('monetization/update');?>">
		<table class="nostyle">
			<tr>
				<td><input type="hidden" class="input-text" name="id" value="<?php if (isset($monetization['id'])) echo $monetization['id'];?>"/></td>
			</tr>
			<tr>
				<td>Name:</td>
				<td><input type="text" class="input-text" name="name" value="<?php if (isset($monetization['name'])) echo $monetization['name'];?>"/></td>
			</tr>
			<tr>
				<td>Note:</td>
				<td><input type="text" class="input-text" name="note" value="<?php if (isset($monetization['note'])) echo $monetization['note'];?>"/></td>
			</tr>
			<tr>
				<td>Html:</td>
				<td><textarea name="html" cols="100" rows="5"><?php if (isset($monetization['html'])) echo htmlentities($monetization['html']);?></textarea></td>
			</tr>
			<tr>
				<td>Secret Key:</td>
				<td><input type="text" class="input-text" name="secret_key" value="<?php if (isset($monetization['secret_key'])) echo $monetization['secret_key'];?>"/></td>
			</tr>
			<tr>
				<td>Application ID:</td>
				<td><input type="text" class="input-text" name="app_id" value="<?php if (isset($monetization['app_id'])) echo $monetization['app_id'];?>"/></td>
			</tr>
			<tr>
				<td colspan="2" class="t-right"><input type="submit" class="input-submit" value="Save"/></td>
			</tr>
		</table>
		</form>
	</fieldset>
</div>
<?php $this->_endblock(); ?>